/* reset from http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a, a:visited {
  text-decoration: none;
}
sup {
  vertical-align: super;
  font-size: smaller;
}

/* ******************************************************************* */
/* Main styling: */

// Colours:
@main_headline: #0099cc;
@secondary_txt: #CBDD38;
@error_txt:     #FF0000;
@msg_backround: #FFFFD5;
@msg_border:    @error_txt;

a, a:visited {
  text-decoration: underline;
}
body {
    padding: 0 10px;
    font-family: Helvetica,Arial,sans-serif;
    font-size: 13px;
}
#page {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: none;
  background: url(img/wfo_logo.png) no-repeat bottom left;
}
#header {
    text-align:center;
    height: 70px;
    background: @main_headline url(img/50px_csiro_mast_solid.gif) no-repeat top right;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
img.logo {
    margin-left: 0;
    margin-right: 0;
    float: left;
    background: white;
}
#subheader {
    height: 30px;
    text-align:right;
    color: black;
    background-image: url(img/grey_top.gif);
    background-position: 0 10px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    position: absolute;
    left: 60px;
    right: 0;
    top: 30px;
}
#textheader {
    float: left;
    color: @main_headline;
}
#subheader a, #subheader a:visited {
    color: @main_headline;
  text-decoration: none
}
#loginplaceholder, #logoutplaceholder {
  float: right;
}
#quickhelpplaceholder {
  display: block;
  float: right;
}
.usermessage {
  border: 1px solid @msg_border;
  background: @msg_backround;
  padding: 10px;
  margin-bottom: 10px;
}
#content {
  margin-top: 10px;
}

/* Region-chooser overlay */
#chooseregion .header {
    background: url(img/grey_top.gif) repeat-x;
    margin-bottom: 10px;
    border-bottom: 2px dashed @secondary_txt;
}
h1 {
    color: @main_headline;
    font-size: 200%;
    padding-bottom: 10px;
}
h2 {
    color: darken(@main_headline, 10%);
    font-size: 150%;
}
.description {
    color: grey;
    line-height: 200%;
    font-style: italic;
    visibility: hidden;
}
#worldmap {
    width: 720px;
    height: 360px;
}
.connieversion {
    color: @secondary_txt;
}
#mapcontainer {
    position: absolute;
    left: 250px;
    top: 80px;
    right: 0;
    bottom: 18px;
}
/* Positioned absolutely inside the mapcontainer; note the top
   parameter will be reset again by javascript to below the message: */
#map {
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 10px;
}
/* Main form styling: */
#parameters {
    width: 250px;
    overflow: hidden;
}
#paraminputs {
  padding: 0 5px;
}
#paraminputs fieldset {
  border: none;
  margin-bottom: 10px;
}
#paraminputs fieldset legend {
  padding-bottom: 3px;
}
#paraminputs #uvfields li {
  padding-left: 5px;
}
#paraminputs #uvfields select {
  width: 230px;
}
#paraminputs ol li {
  line-height: 20px;
  list-style: none;
  margin-bottom: 2px;
}
#paraminputs ol ol {
  margin-bottom: 10px;
}
#paraminputs ol ol li {
  border: none;
  float: left;
}
#paraminputs label {
  float: left;
  width: 155px;
}
#paraminputs fieldset fieldset label {
  padding-left: 5px;
  width: 150px;
}
#paraminputs fieldset fieldset ol.standalone label {
    padding-left: 0;
}
#paraminputs ol ol label {
  width: auto;
}
#paraminputs input, #paraminputs select {
  width: 78px;
  border: 1px solid @main_headline;
  background-color: white;
  margin-bottom: 2px;
}
#paraminputs select {
  width: 80px;                  /* don't know why 'select' needs to be 2 pixels wider!! */
}
#paraminputs input[type=radio] {
  border: none;
  float: left;
  margin-right: 5px;
  width: auto;
}
#parambuttons input {
  border: auto;
}
#paraminputs .nonform {
  padding-top: 10px;
}
.datadates {
  color: gray;
  padding-left: 5px;
}
/* border around datepickr buttons to make them more visible: */
li.month, li.day {
  border: 1px solid @main_headline !important;
}
/* Slight padding for li items so text-underline doesn't get cut-off in the download links: */
#downloadlink li {
    padding-bottom: 2px;
}

a.close, a.close:visited {
  color: @msg_border;
}

#footer {
    text-align:right;
    background-color: @main_headline;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
    padding-right: 10px;
}
#footer a, #footer a:visited {
    color: #FFFFFF;
    text-decoration: none;
}

.submit {
    align: right;
}
label.error {
    float: none;
    color: @error_txt;
    padding-left: .5em;
    vertical-align: top;
}


.ui-widget {
  font-size: 13px;              /* reset */
}
/* behaviours tabs styling: */
.ui-tabs {
  font-size:12px;
}
.ui-corner-all {
  -moz-border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  border-radius: 0 !important;
}
.ui-tabs .ui-tabs-panel {
  padding: 5px 0;
}
#phaseTabs .ui-widget-header {
  background: #FFFFFF !important;
}
#phaseTabs {
  /* line up right edge with other components: */
  margin-right: 5px !important;
}
#phaseTabs > div {
  padding-left: 5px;
}
#phaseTabs input {
  width: 72px;
}
#phaseTabs select {             /* Don't know why this needs two more pixels! */
  width: 74px;
}
#phaseTabs label {
  width: 146px !important;
}
#phaseTabs fieldset label {
  padding-left: 5px;
  width: 141px !important;      /* Note: label width - padding */
}
#phaseTabs fieldset {
  margin-bottom: 0;             /* resets the "external" margin; this plus the following rule creates an even space at the top of the level declarations */
}
/* dialogue styling: */
.ui-dialog .ui-widget-header {
  background: @main_headline url(img/50px_csiro_mast_solid.gif) no-repeat top right;
}
.ui-dialog-titlebar, .ui-dialog-content {
  font-size: 13px;
}
.ui-widget-overlay {
  background: black no-repeat;
  opacity: 0.65;
  filter: Alpha(Opacity=65);
}
.cfgRow td {
  padding-top: 10px;
}
.cfgTable th, .cfgTable td {
  padding-right: 30px;
}
.cfgTable h2 {
  overflow: visible;
  font-weight: bold;
  text-indent: -5px;
  margin-bottom: 5px;
}
.cfgRow td ul {
  height: 60px;
}
.cfgRow li {
  position: relative;
  width: 260px;
  margin-bottom: 15px;
  display: block;
}
.cfgRow select, .cfgRow input {
  position: absolute;
  right: 0;
}
.cfgRow th li label {
  width: 208px;
}
.cfgTable input {
  width: 50px;
  background-color: white;
  border: 1px solid @main_headline;
}
.cfgTable li fieldset label {
  padding-left: 5px;
}
.cfgTable li fieldset input {
  margin-bottom: 2px
}
.cfgRow td li label {
  width: 155px;
}
.cfgRow td li select {
  position: absolute;
  right: 0;
  width: 80px;
  border: 1px solid @main_headline;
  background-color: white;
}
/* positioning of add/remove controls: */
.cfgHeaderWrapper, .cfgCellWrapper {
  vertical-align: top;
  position: relative;
}
.cfgAddCol h2, .cfgColumnRemove h2 {
  width: 16px;
  height: 16px;
  text-indent: -9999px;
  position: absolute;
}
.cfgAddCol h2 {
  background: url("img/add.png") no-repeat;
  position: relative;
}
.cfgColumnRemove h2 {
  background: url("img/delete.png") no-repeat;
  top: 0;
  right: 0;
}
#behavioursTarget {
  overflow: hidden;
}
#behavioursContent {
  margin-left: 20px;
}

/* quick-help styling: */
div.msgbox {
  background: #ffffff url(img/grey_top.gif) repeat-x top left;
  color: black;
  padding: 10px;
}
div.msgbox.info {
  width: 500px;
  max-height: 500px;
  overflow-y: auto;
}
.msgbox .msgtitle {
  color: @secondary_txt;
  font-weight: bold;
  margin: 0 auto 5px auto;
  text-transform: capitalize;
}
.msgbody {
  margin: 10px 0;
}
.msgbody a, .msgbody a:visited {
  color: @main_headline;
}
.msgbox dt {
  clear: left;
  color: @main_headline;
  float: left;
  font-weight: bold;
  text-align: right;
  text-transform: capitalize;
  width: 100px;
}
.msgbox dt:after {
  content: ":";
}
.msgbox dd {
  margin: 0 0 10px 110px;
  padding: 0 0 0.5em 0;
}
.msgbox li {
  padding-bottom: 1em;
}
.msgbox .pubtitle {
  font-style: italic;
}

/* Registration forms, etc (http://www.alistapart.com/articles/prettyaccessibleforms/): */
form.fbform .errorlist {
  color: @error_txt;
}
form.fbform fieldset {
  margin-bottom: 10px;
  color: @main_headline;
}
form.fbform legend {
  padding: 0 2px;
  font-weight: bold;
  color: @secondary_txt;
}
form.fbform label {
  display: inline-block;
  line-height: 1.8;
  vertical-align: top;
}
form.fbform fieldset ul {
  margin: 0;
  padding: 0;
}
form.fbform fieldset li {
  list-style: none;
  padding: 5px;
  margin: 0;
}
form.fbform fieldset fieldset {
  border: none;
  margin: 3px 0 0;
}
form.fbform fieldset fieldset legend {
  padding: 0 0 5px;
  font-weight: normal;
}
form.fbform fieldset fieldset label {
  display: block;
  width: auto;
}
form.fbform em {
  font-weight: bold;
  font-style: normal;
  color: @error_txt;
}
form.fbform label {
  width: 120px; /* Width of labels */
}
form.fbform fieldset fieldset label {
  margin-left: 123px; /* Width plus 3 (html space) */
}

div.colourBar {
  right: 3px;
  bottom: 15px;
}

div.colourBar img {
  height: 240px;
  width: auto;
}

input.error, select.error {
    background-color: @msg_backround !important;
    border: 1px solid @msg_border !important;
}
input.error {
    color: @error_txt !important;
}
#behavioursTrigger.error {
  color: @error_txt;
  background-color: @msg_backround;
  border: 1px solid @msg_border;
}
#errormessages {
    color: @error_txt;
    padding: 10px 10px 8px 0;
}
ul#errorlist {
    list-style-type: square;
    list-style-position: outside;
    padding-left: 1em;
}
#errorlist > li {
    padding-top: 8px;
}
.activationmessage {
  width: 40em;
  margin: 0 auto 0;
  padding: 10px;
}
.activationerror {
  border: 1px solid @error_txt;
  color: @error_txt;
}
.activationsuccess {
  border: 1px solid @main_headline;
}
.errormessage {
  width: 40em;
  margin: 0 auto 0;
  padding: 10px;
  border: 1px solid @error_txt;
  color: @error_txt;
}

/* add a z-index so the date picker hovers over the map correctly: */
.ui-datepicker {
  z-index: 2000;
}
/* ditto for the facebox (so we keep the imported code as-is): */
#facebox {
  z-index: 10000;
}
.facebox_overlayBG {
  z-index: 9999;
}

/* OpenLayers styling tweaks */

/* When the blue-marble background is in effect we invert the colour
of the controls so they're still visible (a javascript event toggles
the bmng class) */
.bmng .olControlMousePosition,
.bmng .olControlScaleLine,
.bmng .olControlScaleLineTop,
.bmng .olControlScaleLineBottom {
    color: white;
    border-color: white;
}

/* ************************************************* */
/* Configurations List Styling: */
.result {
    padding-bottom: 10px;
    line-height: 130%;
}
.result h2 {
    font-size: 110%;
}
.result .type {
    padding-left: 10px;
}
.result td {
    padding: 0 5px;
}
.pagination {
    /* Clear the flagship logo: */
    margin-bottom: 90px;
    text-decoration: none;
    font-size: 120%;
}
.pagination .next {
    float: right;
}

/* ************************************************* */

/*
Sticky Footer Solution
by Steve Hatcher
http://stever.ca
http://www.cssstickyfooter.com
*/

html, body, #page {
    height: 100%;
}

body > #page {
    height: auto;
    min-height: 100%;
}

#page {
    min-height: 100%;
    clear: both;
    position: relative;
}

* html #page {
    height: 100%;
}

#content {
    display: block;
    padding-bottom: 18px;
}

#footer {
    clear: both;
    position: relative;
    height: 18px;
    margin-top: -18px;
    margin-bottom: -19px;
}

.clearfix:after {
    content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
.clearfix {
    display: inline-block;
}
/* Hides from IE-mac \*/
* html .clearfix {
    height: 1%;
}
.clearfix {
    display: block;
}
/* End hide from IE-mac */

/* IE7 overrides (not bothering with IE6, but IE7 has issues that I
haven't been able to resolve cheaply otherwise, so just give the map a
fixed size initially (or it won't display)), and resize with js: */
.lt-ie8 #map {
    width: 710px;
    height: 600px; /* just an initial height, so the map is constructed properly */
}
/* Thanks to http://www.shorepound.net/wpblog/?p=259 ; don't know why
I didn't think of it myself! */
.lt-ie8 #facebox .content {
    width: auto;
}
